package net.hn.hnms.biz.api.video;

import net.hn.hnms.biz.api.video.RemoteVideoService;
import net.hn.hnms.biz.api.video.model.dto.Camera;
import net.hn.hnms.sys.common.core.domain.R;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Author: PanSX
 * Date: 2022/8/10 17:29
 */
@Component
public class RemoteVideoServiceFallback implements RemoteVideoService {

    @Override
    public R<String> getStreamUrl(String cameraIndexCode, String streamType, String protocol, String transmode, String streamform, String expand) {
        return R.fail("视频流地址获取失败！");
    }

    @Override
    public R<List<Camera>> list() {
        return R.fail("获取失败！");
    }

}
